<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>上传demo</title>
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="stylesheet" href="/etSales/plugIn/layui/css/layui.css " media="all">
<script src="/etSales/plugIn/jquery/jquery-1.12.4.min.js" charset="utf-8"></script>
<script src="/etSales/plugIn/layui/layui.all.js" charset="utf-8"></script>
<script src="/etSales/common/js/util.js" charset="utf-8"></script>
</head>

<body>


	<fieldset class="layui-elem-field layui-field-title"
		style="margin-top: 30px;">
		<legend>普通图片上传</legend>
	</fieldset>

	<div class="layui-upload">
		<button type="button" class="layui-btn" id="test1">上传图片</button>
		<div class="layui-upload-list">
			<img class="layui-upload-img" id="demo1">
			<p id="demoText"></p>
		</div>
	</div>

	<fieldset class="layui-elem-field layui-field-title"
		style="margin-top: 30px;">
		<legend>多张图片上传</legend>
	</fieldset>

	<div class="layui-upload">
		<button type="button" class="layui-btn" id="test2">多图片上传</button>
		<blockquote class="layui-elem-quote layui-quote-nm"
			style="margin-top: 10px;">
			预览图：
			<div class="layui-upload-list" id="demo2"></div>
		</blockquote>
	</div>

	<fieldset class="layui-elem-field layui-field-title"
		style="margin-top: 30px;">
		<legend>单文件</legend>
	</fieldset>

	<div class="layui-upload">
		<button type="button" class="layui-btn layui-btn-normal" id="test8">选择文件</button>
		<button type="button" class="layui-btn" id="test9">开始上传</button>
	</div>

	<fieldset class="layui-elem-field layui-field-title"
		style="margin-top: 30px;">
		<legend>ftp多文件</legend>
	</fieldset>

	<div class="layui-upload">
		<button type="button" class="layui-btn layui-btn-normal" id="testList">选择多文件</button>
		<div class="layui-upload-list">
			<table class="layui-table">
				<thead>
					<tr>
						<th>文件名</th>
						<th>大小</th>
						<th>状态</th>
						<th>操作</th>
					</tr>
				</thead>
				<tbody id="demoList"></tbody>
			</table>
		</div>
		<button type="button" class="layui-btn" id="testListAction">开始上传</button>
	</div>

<script src="/etSales/demo/js/upload.js" charset="utf-8"></script>

</body>
</html>